<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>第一个js案例</title>
    <!-- <script>
        document.getElementById("mydiv").innerText="你好，jS";
    </script> -->
    <script src="js/base.js">
    </script>

</head>
<body>
    <div id="mydiv">HELLO,js</div>
    <div>
        <input value="点击我" type="button" onclick="showLog('45678')">
    </div>
    <script>

        function myck(msg){
            alert("收到信息："+msg);
        }

        function showLog(msg){
            console.log(msg);
        }
    </script>
    <!-- <script>
        document.getElementById("mydiv").innerText="你好，jS";
    </script> -->
</body>
</html>